home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / gcc / crossgcc_linux.tgz.readme < prev    next >
Text File  |  2001-08-17  |  1KB  |  41 lines

  1. Short:    Crossgcc linux to AmigaOS
  2. Author:   MartinTauchmann@bigfoot.com (Martin Tauchmann)
  3. Uploader: MartinTauchmann@bigfoot.com (Martin Tauchmann)
  4. Version:  2.95.3-3 (-fbaserel and -fbaserel32 refixed)
  5. Type:     dev/gcc
  6. Requires: 686 compatible CPU
  7. Date:     06.08.01
  8. Url:      http://MartinTauchmann.home.pages.de
  9. Filesize: 5578995
  10.  
  11. I have compiled gcc as a cross compiler so one can compile amiga programs on a computer with
  12. linux. It is special usefull when one wants to port unix programs to amigaos.
  13.  
  14. installation:
  15. untar the archive in the /root/ directory.
  16.  
  17. Add to (or create) ~/.bashrc 
  18. export COPTFLAGS='-O3'
  19. export LDFLAGS='-s'
  20. PATH=/root/fsf/gg/bin:$PATH ; export PATH
  21.  
  22. Copy your amigaos-includes to /root/fsf/gg/m68k-amigaos/sys-include
  23. They are copyright by Amiga and on the DeveloperCD and the FrozenFishCD which is sometimes mounted at
  24. ftp://ftp.cs.tu-berlin.de/pub/amiga/
  25. ftp://ftp.rz.uni-wuerzburg.de/pub/amiga/ 
  26.  
  27.  
  28. To cross-compile C programs type:
  29. m68k-amigaos-gcc [-O3] [-noixemul] [-resident] [-fbaserel[32]] -o HelloWorld HelloWorld.c -s
  30.  
  31. To cross-compile Oberon programs make install oo2c from http://ooc.sourceforge.net and type:
  32. oo2c [-v] --make [--no-rtc] --config /root/fsf/gg/m68k-amigaos/lib/oo2c/oo2crc.cross ./HelloWorld | ooef
  33.  
  34.  
  35. compiled with:
  36. gcc v2.95.3   CFLAGS=-O3
  37. binutils v2.9.1  CFLAGS=-O9 -mpentiumpro
  38.  
  39.  
  40. Have fun!
  41.